package java51.demo18;

import java.util.LinkedList;
import java.util.List;

public class ListTest2 {

	public static void main(String[] args) {
		List l2 = new LinkedList();
		l2.add("李慧");
		l2.add("吴玉波");
		l2.add("徐涛");
		l2.add("吴翔");

		boolean in = l2.contains("吴翔");
		System.out.println(in);
		int pos = l2.indexOf("五香");
		System.out.println(pos);
		String s1 = "吴翔";
		String s2 = "吴翔";
		System.out.println(">>>>>>>>>>>>>>>>>>");
		System.out.println(s1 == s2);
	}

}
